Get Facts About Numbers
(12 actions, 11 KB)
0 Comment
http://numbersapi.com
1 Get Dictionary from
[Shortcut Input]
»
2 Get Contents of URL
http://numbersapi.com/
[1 Dictionary
.number
]
/
[1 Dictionary
.type
]
»
3
5
HTTPHeaders
:
{ "Content-Type": "application/json" }
ShowHeaders
:
true
3 Get Dictionary Value for
found
in
[2 Contents of URL]
➔ found
»
4 If
[3 found
as Boolean
]
is true
5 Get Dictionary from
[2 Contents of URL]
6 Otherwise
7 List »
[trivia, math]
8 Get
Random Item
from List
[7 List]
»
9 Get Contents of URL
http://numbersapi.com/random/
[8 Item from List]
HTTPHeaders
:
{ "Content-Type": "application/json" }
ShowHeaders
:
true
10 End If »
11 Stop and Output
[10 If Result
as Dictionary
]